<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2007-9-18
  Time: 22:01:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<div id="sidebar" class="sidebar">
    <div id="innerSidebar">
        <%--<div class="panel">
            <h5 onclick='showhidediv("sidebar_search");'>搜索</h5>

            <div class="panel-content" id="sidebar_search" style="display: block">
                <form method="post" action="visit.php">
                    <input name="job" type="hidden" value="search"/>
                    <input name="keyword" class="search-field" type="text"/>
                    <select name="searchmethod">
                        <option value="1">日志标题</option>
                        <option value="2">日志全文</option>
                        <option value="3">评论引用</option>
                        <option value="4">所有留言</option>
                        <option value="5">Tags</option>
                    </select>
                    <input value="搜索" class="button" type="submit"/>
                </form>
            </div>
        </div>--%>
        <div class="panel">
            <h5>推荐文章</h5>

            <div class="panel-content" id="sidebar_entries" style="display: block">
                <ul>
                    <c:forEach items="${actionBean.recommedArticles}" varStatus="status" var="article">
                        <li class="${status.index%2==0?'rowcouple':'rowodd'}"><a href="/article.do?id=${article.id}" title="${article.title}">${article.title}</a></li>
                    </c:forEach>
                </ul>
            </div>
        </div>
       <%-- <div class="panel">
            <h5>最新评论</h5>
            <div class="panel-content" id="sidebar_replies" style="display: block">
                <ul>
                    <c:forEach items="${actionBean.latestComments}" varStatus="status" var="comment">
                    <li class="${status.index%2==0?'rowcouple':'rowodd'}"><a href="/article.do?id=${comment.article.id}#reply" title="">${comment.content}</a></li>
                    </c:forEach>
                </ul>
            </div>
        </div>
        <div class="panel">
            <h5>推荐资源</h5>

            <div class="panel-content" id="sidebar_link" style="display: block">
                <ul>
                    <!--<li><strong>默认链接组</strong></li>-->
                    <c:forEach items="${actionBean.links}" var="link">
                    <li class="indent"><a href="${link.url}" target="_blank"
                                          title="${link.name}">${link.name}</a></li>
                    </c:forEach>
                </ul>
            </div>
        </div>--%>
    </div>
</div>